package com.xdl.flytest.bean;

import java.io.File;
import java.util.List;
import java.util.Map;

/**
 * @Auther: 80736
 * @Date: 2019/1/2 20:01
 * @Description: 请求body
 */
public class Body {

    private Map<String, Object> formData;

    private Map<String, Object> formUrlEncoded;

    private Object raw;

    private File file;

    public Body(Map<String, Object> formData) {
        this.formData = formData;
    }


    public Body(String raw) {
        this.raw = raw;
    }

    public Body(File file) {
        this.file = file;
    }

    public Body() {

    }

    @Override
    public String toString() {
        return "Body{" +
                "formData=" + formData +
                ", formUrlEncoded=" + formUrlEncoded +
                ", raw='" + raw + '\'' +
                ", file=" + file +
                '}';
    }


    public Object getRaw() {
        return raw;
    }

    public void setRaw(Object raw) {
        this.raw = raw;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    public Map<String, Object> getFormData() {
        return formData;
    }

    public void setFormData(Map<String, Object> formData) {
        this.formData = formData;
    }

    public Map<String, Object> getFormUrlEncoded() {
        return formUrlEncoded;
    }

    public void setFormUrlEncoded(Map<String, Object> formUrlEncoded) {
        this.formUrlEncoded = formUrlEncoded;
    }
}
